package com.itheima.controller;

import com.itheima.bean.Card;
import com.itheima.service.CardService;
import com.itheima.service.impl.CardServiceImpl;
import org.junit.Test;

import java.util.List;

public class CardController {

    private CardService cardService = new CardServiceImpl();

    @Test
    public void testFindAll(){
        List<Card> cards = cardService.findAll();

        for (Card card : cards) {
            System.out.println(card);
        }
    }
}
